package com.songlanyun.modules.account.model.dto;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.songlanyun.common.drive.ValueObject;

import com.songlanyun.common.validator.group.*;
import lombok.Data;

/**
 * 实名认证
 *
 * @author lijiahe
 * @date 2022-09-22
 */
@Data
public class UserVerifiedDTO implements Serializable {

    /**
     * 会员信息id(对应相同的帐户Id)
     */
    private Long id;

    /**
     * 真实姓名
     */
    @NotBlank(message = "真实姓名不能为空", groups = AppGroup.class)
    private String realName;

    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空", groups = AppGroup.class)
    private String identityNumber;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 手机号
     **/
    private String mobile;
    /**
     * 验证码
     */
    @NotEmpty(message = "验证码不能为空", groups = AppGroup.class)
    private String captcha;

    /**
     * 牛逼的强制实名标识
     **/
    private boolean hard = false;
}
